package com.uls.lh.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 驾驶员信息管理对象 lh_driverinfo
 * 
 * @author lh
 * @date 2024-11-07
 */
public class LhDriverinfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 驾驶员编号 */
    private Long driverId;

    /** 驾驶员姓名 */
    @Excel(name = "驾驶员姓名")
    private String name;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phoneNumber;

    /** 驾照号码 */
    @Excel(name = "驾照号码")
    private String licenseNumber;

    /** 驾照到期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "驾照到期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date licenseExpiryDate;

    /** 当前状态(1在职，0离职） */
    @Excel(name = "当前状态(1在职，0离职）")
    private String status;

    public void setDriverId(Long driverId) 
    {
        this.driverId = driverId;
    }

    public Long getDriverId() 
    {
        return driverId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setLicenseNumber(String licenseNumber) 
    {
        this.licenseNumber = licenseNumber;
    }

    public String getLicenseNumber() 
    {
        return licenseNumber;
    }
    public void setLicenseExpiryDate(Date licenseExpiryDate) 
    {
        this.licenseExpiryDate = licenseExpiryDate;
    }

    public Date getLicenseExpiryDate() 
    {
        return licenseExpiryDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("driverId", getDriverId())
            .append("name", getName())
            .append("phoneNumber", getPhoneNumber())
            .append("licenseNumber", getLicenseNumber())
            .append("licenseExpiryDate", getLicenseExpiryDate())
            .append("status", getStatus())
            .toString();
    }
}
